package com.zdj.presentation.base;

import android.app.Application;

import com.zdj.data.entity.LoginInfo;
import com.zdj.data.net.NetWorks;
import com.zdj.data.utils.DBUtil;
import com.zdj.presentation.BuildConfig;
import com.zdj.utils.MyLogUtil;

/**
 * Created by zdj on 16-5-28.
 */

public class BaseApplication extends Application {

    /**
     * 当前登录用户 <br/>
     * 作者 ：dengjie zhang <br/>
     * created at 2017/1/23 14:19
     */
    public static LoginInfo sLoginInfo;

    @Override
    public void onCreate() {
        super.onCreate();
        initSDKs();
    }

    private void initSDKs() {
        DBUtil.setupDatabase(this);
        NetWorks.init(this);
        MyLogUtil.setmIsAbleLog(BuildConfig.DEBUG);
    }

}
